package cn.chuengxu.controller;

import cn.chuengxu.domain.User;
import cn.chuengxu.feignclient.UserFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
public class PayController {

    @Autowired
    private UserFeignClient userFeignClient;


    @GetMapping("/getUserById/{id}")
    public User getUserById(@PathVariable Long id){

            return userFeignClient.getUserById(id);

    }

}
